#!/usr/bin/env python
# encoding: utf-8

import sys
import threading
import time
import logging
import config

reload(sys)
sys.setdefaultencoding("utf-8")

log = logging.getLogger("")


class syncRule(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
        self.daemon = True
        self.start()

    def run(self):
        while True:
            try:
                config.init_rule()
            finally:
                time.sleep(60)